package com.base.service;

import com.base.dao.*;

/**
 * gps行动以及打卡的审核类
 * @author Administrator
 *
 */
public class GpsCheckService {
	
	// 单例模式 start
	private volatile static GpsCheckService instance = null;
	private TCheckDao tCheckDao;
	
	
	
	
	private GpsCheckService() {
		tCheckDao = (TCheckDao) _BaseDao.ac.getBean("TCheckDao");
		
	}
	public static GpsCheckService getInstance() {
		if (instance == null) {
			synchronized (GpsCheckService.class) {// 1
				if (instance == null) {// 2
					instance = new GpsCheckService();// 3
				}
			}
		}
		return instance;
	}
	// 单例模式 end
	
	

	/**
	 * 打卡/行动审核
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}
	public TCheckDao gettCheckDao() {
		return tCheckDao;
	}
	public void settCheckDao(TCheckDao tCheckDao) {
		this.tCheckDao = tCheckDao;
	}

}
